/*
 * @Autor: 黄旗
 * @Date: 2020-06-02 17:47:27
 */
import BasicLayout from '@/layouts/basic-layout';

const meta = {
    auth: true
};

const pre = 'home-returnVisit-';

export default {
    path: '/home/returnVisit',
    name: 'home-returnVisit',
    redirect: {
        name: `${pre}list`
    },
    meta,
    component: BasicLayout,
    children: [
        {
            path: 'medicalList',
            name: `${pre}medicalList`,
            meta: {
                ...meta,
                keepAlive: true,
                title: '医助回访列表'
            },
            component: () => import('@/pages/home/returnVisit/medical-list')
        },
        {
            path: 'list',
            name: `${pre}list`,
            meta: {
                ...meta,
                keepAlive: true,
                title: '客服回访列表'
            },
            component: () => import('@/pages/home/returnVisit/list')
        },
        {
            path: 'transfer',
            name: `${pre}transfer`,
            meta: {
                ...meta,
                keepAlive: true,
                title: '患者列表'
            },
            component: () => import('@/pages/home/returnVisit/transfer')
        },
        // {
        //     path: 'list/list-need',
        //     name: `${pre}list/list-need`,
        //     meta: {
        //         ...meta,
        //         keepAlive: true,
        //         title: '客服回访列表'
        //     },
        //     component: () => import('@/pages/home/returnVisit/list/list-need')
        // },
        // {
        //     path: 'list/list-already',
        //     name: `${pre}list/list-already`,
        //     meta: {
        //         ...meta,
        //         keepAlive: true,
        //         title: '客服已回访'
        //     },
        //     component: () => import('@/pages/home/returnVisit/list/list-already')
        // },
        // {
        //     path: 'list/list-overdue',
        //     name: `${pre}list/overdue`,
        //     meta: {
        //         ...meta,
        //         keepAlive: true,
        //         title: '客服过期未回访'
        //     },
        //     component: () => import('@/pages/home/returnVisit/list/overdue')
        // },
        // {
        //     path: 'medicalList/list-need',
        //     name: `${pre}medicalList/list-need`,
        //     meta: {
        //         ...meta,
        //         keepAlive: true,
        //         title: '医助回访列表'
        //     },
        //     component: () => import('@/pages/home/returnVisit/medical-list/list-need')
        // },
        // {
        //     path: 'medicalList/list-already',
        //     name: `${pre}medicalList/list-already`,
        //     meta: {
        //         ...meta,
        //         keepAlive: true,
        //         title: '医助已回访'
        //     },
        //     component: () => import('@/pages/home/returnVisit/medical-list/list-already')
        // },
        // {
        //     path: 'medicalList/list-overdue',
        //     name: `${pre}medicalList/overdue`,
        //     meta: {
        //         ...meta,
        //         keepAlive: true,
        //         title: '医助过期未回访'
        //     },
        //     component: () => import('@/pages/home/returnVisit/medical-list/overdue')
        // },
        {
            path: 'AntiRelapse',
            name: `${pre}AntiRelapse`,
            meta: {
                ...meta,
                // keepAlive: true,
                title: '抗复发列表'
            },
            component: () => import('@/pages/home/returnVisit/AntiRelapse')
        }
    ]
};
